<script lang="jsx">
import home from "./home.vue";
export default {
    data() {
        return {
            counter: 0
        }
    },
    render() {
        <div class="app">
            <h2>当前计数：{this.counter}</h2>
            <button onClick={this.increment}>+1</button>
            <button onClick={this.decrememt}>-1</button>
            <home></home>
        </div>
    },
    methods: {
        increment() {
            this.counter++
        },
        decrememt() {
            this.counter--
        }
    }
}
</script>
<style scoped lang="less"></style>